﻿using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace DNT.Extensions.UnitTest
{
    [TestClass]
    public class PersianExtensionsTests
    {
        [TestMethod]
        public void NationalCodeValidation()
        {
            Assert.AreEqual(true, "0010350829".IsValidNationalCode());
            Assert.AreEqual(false, "".IsValidNationalCode());
            Assert.AreEqual(false, "0254".IsValidNationalCode());
            Assert.AreEqual(false, "007-125698-4".IsValidNationalCode());
            Assert.AreEqual(true, "0077611616".IsValidNationalCode());
            Assert.AreEqual(false, " 0077611616  ".IsValidNationalCode());
        }
    }
}
